package cn.wolfcode.car.vo;

import com.alibaba.fastjson.JSON;
import lombok.Getter;
import lombok.Setter;

import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
@Getter
@Setter
public class ChartVO {
    private List<String> cond = new ArrayList<>();
    private List<BigDecimal> total = new ArrayList<>();
    private List<BigDecimal> pay = new ArrayList<>();
    private List<BigDecimal> discount = new ArrayList<>();
    private List<Integer> count = new ArrayList<>();

    public Object getJson() {
        HashMap<String, Object> map = new HashMap<>();
        map.put("cond", this.cond);
        map.put("total", this.total);
        map.put("pay", this.pay);
        map.put("discount", this.discount);
        map.put("count", this.count);
        return JSON.toJSONString(map);
    }

}
